/*
 * @Author: Crism
 * @Date: 2018-10-31 09:58:30
 * @LastEditors: Crism
 * @LastEditTime: 2018-11-01 14:46:45
 * @Email: crism@qq.com
 * @Description: 
 */

const db_cms = require('../config').db_cms;

/** 查询音乐标签 */
module.exports.query_tag_list = query_tag_list;
async function query_tag_list(begin, plen) {
    let sql = 'SELECT tag_id,tag_title,tag_type FROM `tag_info` where tag_status=0 limit ' + begin + ',' + plen;
    let tag_list = await db_cms.query(sql);
    if (tag_list instanceof Array && tag_list.length > 0) {
        return tag_list;
    }
    return [];
}
